﻿using MG.Library.Models;
using System.Linq.Expressions;

namespace MG.Library.Services;

public interface IMGStorage
{
    bool IsInitialized { get; }

    Task InitializeAsync();

    Task<Mg> GetMgAsync(int id);

    Task<IEnumerable<Mg>> GetMgsAsync(
        Expression<Func<Mg, bool>> where, int skip, int take);
}